package com.huibur.devicecheck.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huibur.devicecheck.model.po.UserPO;
import com.huibur.devicecheck.model.query.UserQuery;
import com.huibur.devicecheck.model.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/*******************************************************
* Title: UserMapper.java
* Description:
* @author baiqingshuo
* @date 2021/9/24
* @version 1.0
*******************************************************/
@Repository
@Mapper
public interface UserMapper extends BaseMapper<UserPO> {

    /**
     * 用户列表
     * @param page
     * @param userQuery
     * @return
     */
    IPage<UserVO> selectListUser(@Param("page") Page<UserPO> page, @Param("userQuery") UserQuery userQuery);
}
